package core;

import java.sql.SQLException;
import java.util.ArrayList;


public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//        Data da = new Data();
//        da.lode_config("2011-03-02", 4, 10, 0.3, 1);
//		da.readBlockTask("d:/2-1.txt");
//		da.add_blocks();
//		da.readYard("d:/2-1.txt");
//		da.add_yards();
//		da.get_blocks();
//		da.get_yards();
//		Configuration con = new Configuration(da);
//		con.process();
		
//		(0.0,0.0)(0.0,1.91)(-8.0,2.0)(-8.0,0.09)
		ArrayList<POINT> s = new ArrayList<POINT>();
		s.add(new POINT(0.0,0.0));
		s.add(new POINT(0.0,1.91));
		s.add(new POINT(-8.0,2.0));
		s.add(new POINT(-8.0,0.09));
		MyPolygon p1 = new MyPolygon(s);
		p1.format();
//		(-2.49,0.0)(0.0,0.0)(1.51,7.0)(-0.99,7.0)
		ArrayList<POINT> s2 = new ArrayList<POINT>();
		s2.add(new POINT(-2.49,0.0));
		s2.add(new POINT(0.0,0.0));
		s2.add(new POINT(1.51,7.0));
		s2.add(new POINT(-0.99,7.0));
		MyPolygon p2 = new MyPolygon(s2);
		p2.format();
		MyPolygon pp = p2.obstacleSpaceRTB(p1);
		Data d = new Data();
		//d.add_config();
		d.update_config();
		d.get_config();
		
		System.out.println("end");
	}

}
